import request from '@/utils/request'

// 查询订单类型列表
export function listOrdertype(query) {
  return request({
    url: '/system/ordertype/list',
    method: 'get',
    params: query
  })
}

// 查询订单类型详细
export function getOrdertype(orderTypeId) {
  return request({
    url: '/system/ordertype/' + orderTypeId,
    method: 'get'
  })
}

// 新增订单类型
export function addOrdertype(data) {
  return request({
    url: '/system/ordertype',
    method: 'post',
    data: data
  })
}

// 修改订单类型
export function updateOrdertype(data) {
  return request({
    url: '/system/ordertype',
    method: 'put',
    data: data
  })
}

// 删除订单类型
export function delOrdertype(orderTypeId) {
  return request({
    url: '/system/ordertype/' + orderTypeId,
    method: 'delete'
  })
}

